package com.ruoyi.course.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 课程对象 t_course
 *
 * @author Bandit
 * @date 2022-11-01
 */
public class TCourse extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 课程id */
    private Long id;

    /** 类型：科目 */
    @Excel(name = "类型：科目")
    private String subject;

    /**
     * 封面图片
     */
    private String coverImage;

    /** 课程名 */
    @Excel(name = "课程名")
    private String title;

    /** 课程描述 */
    @Excel(name = "课程描述")
    private String describe;

    /** 主讲老师 */
    @Excel(name = "主讲老师")
    private Long teacherId;

    /** 讲师姓名，冗余字段 */
    @Excel(name = "讲师姓名，冗余字段")
    private String teacherName;

    /** 发布课程的用户id */
    @Excel(name = "发布课程的用户id")
    private Long createdBy;

    /** 删除标志 */
    @Excel(name = "删除标志")
    private Long deleteFlag;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setSubject(String subject)
    {
        this.subject = subject;
    }

    public String getSubject()
    {
        return subject;
    }
    public void setTitle(String title)
    {
        this.title = title;
    }

    public String getTitle()
    {
        return title;
    }
    public void setDescribe(String describe)
    {
        this.describe = describe;
    }

    public String getDescribe()
    {
        return describe;
    }
    public void setTeacherId(Long teacherId)
    {
        this.teacherId = teacherId;
    }

    public Long getTeacherId()
    {
        return teacherId;
    }
    public void setTeacherName(String teacherName)
    {
        this.teacherName = teacherName;
    }

    public String getTeacherName()
    {
        return teacherName;
    }
    public void setCreatedBy(Long createdBy)
    {
        this.createdBy = createdBy;
    }

    public Long getCreatedBy()
    {
        return createdBy;
    }
    public void setDeleteFlag(Long deleteFlag)
    {
        this.deleteFlag = deleteFlag;
    }

    public Long getDeleteFlag()
    {
        return deleteFlag;
    }


    public String getCoverImage() {
        return coverImage;
    }

    public void setCoverImage(String coverImage) {
        this.coverImage = coverImage;
    }

    @Override
    public String toString() {
        return "TCourse{" +
                "id=" + id +
                ", subject='" + subject + '\'' +
                ", coverImage='" + coverImage + '\'' +
                ", title='" + title + '\'' +
                ", describe='" + describe + '\'' +
                ", teacherId=" + teacherId +
                ", teacherName='" + teacherName + '\'' +
                ", createdBy=" + createdBy +
                ", deleteFlag=" + deleteFlag +
                '}';
    }
}
